-- GENERATED SPELL FOR [Zarcsin] --


function spell0_23355(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(41447,pUnit)
pUnit:RegisterEvent('Sorts_23355', 593, 1)
end

function spell1_23355(pUnit, Event) --@Fel Flames,n/a--
pUnit:FullCastSpellOnTarget(41444,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23355', 5000, 1)
end

function Sorts_23355(pUnit, Event)
local choix_sorts_23355 = math.random(0, 1)
if choix_sorts_23355 == 0 then
pUnit:RegisterEvent('spell0_23355', 1, 1)
end
if choix_sorts_23355 == 1 then
pUnit:RegisterEvent('spell1_23355', 1, 1)
end
end

function mob23355_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23355', math.random(1500, 3000), 1)
end

function mob23355_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23355_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23355_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23355, 1, 'mob23355_Action')
RegisterUnitEvent(23355, 2, 'mob23355_Leave')
RegisterUnitEvent(23355, 3, 'mob23355_Kill')
RegisterUnitEvent(23355, 4, 'mob23355_Die')
